package com.marketingexpert.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.marketingexpert.domain.Task;
import com.marketingexpert.domain.TaskWeiboId;
import com.marketingexpert.domain.WeiboContent;

public interface TaskDao {
	public List<Task> queryTaskByUserId(String userId)   throws DataAccessException;
	
	public Task queryTaskById(int taskId)   throws DataAccessException;
	
	public int insertTask(Task task)   throws DataAccessException;

	public int insertWeiboContent(WeiboContent weiboContent);

	public int insertTaskWeiboId(TaskWeiboId taskWeiboId);

	public void deleteTaskById(int taskId);

	public List<Task> queryMessage(Task task);

	public void deleteTaskByIdAndType(Task t) throws DataAccessException ;

	public void batchDeleteTask(String[] taskIds)throws DataAccessException ;

	public int updateTask(Task task)throws DataAccessException ;

	public TaskWeiboId queryWeiboUserIdByTaskIdAndWUId(TaskWeiboId taskWeiboId)throws DataAccessException ;
	
}
